import { applyMiddleware } from 'redux'
import { createStore } from 'redux'
// 导入合并后的 reducer
import rootReducer from './reducer'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
// 调试工具配置
import { composeWithDevTools } from 'redux-devtools-extension'

// 创建仓库实例
const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk, logger)))

// 导出仓库实例
export default store
